
<!DOCTYPE html>

<html lang="en">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />

    <title>Leo and Asciidoctor &#8212; Leo 6.7.2 documentation</title>
    <link rel="stylesheet" type="text/css" href="_static/pygments.css" />
    <link rel="stylesheet" type="text/css" href="_static/classic.css" />
    <link rel="stylesheet" type="text/css" href="_static/custom.css" />
    
    <script data-url_root="./" id="documentation_options" src="_static/documentation_options.js"></script>
    <script src="_static/jquery.js"></script>
    <script src="_static/underscore.js"></script>
    <script src="_static/_sphinx_javascript_frameworks_compat.js"></script>
    <script src="_static/doctools.js"></script>
    <script src="_static/sphinx_highlight.js"></script>
    
    <script src="_static/sidebar.js"></script>
    
    <link rel="index" title="Index" href="genindex.html" />
    <link rel="search" title="Search" href="search.html" />
    <link rel="next" title="Leo and Emacs, including org mode" href="emacs.html" />
    <link rel="prev" title="Leo and Other Programs" href="leoandotherprograms.html" /> 
  </head><body>
    <div class="related" role="navigation" aria-label="related navigation">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="emacs.html" title="Leo and Emacs, including org mode"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="leoandotherprograms.html" title="Leo and Other Programs"
             accesskey="P">previous</a> |</li>
        <li class="nav-item nav-item-0"><a href="leo_toc.html">Leo 6.7.2 documentation</a> &#187;</li>
          <li class="nav-item nav-item-1"><a href="leoandotherprograms.html" accesskey="U">Leo and Other Programs</a> &#187;</li>
        <li class="nav-item nav-item-this"><a href="">Leo and Asciidoctor</a></li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body" role="main">
            
  <section id="leo-and-asciidoctor">
<h1>Leo and Asciidoctor<a class="headerlink" href="#leo-and-asciidoctor" title="Permalink to this heading">¶</a></h1>
<p><strong>New with Leo 6.1</strong></p>
<p>The Leo <cite>&#64;adoc</cite> directive and the <cite>adoc</cite> command need either <strong>Asciidoc3</strong> or <strong>Asciidoctor</strong> tool installed and in PATH.Asciidoctor is probably the best of the two to use.</p>
<p><strong>Linux:</strong> use your system package manager or ruby <cite>gem install asciidoctor</cite>. More info at <a class="reference external" href="https://asciidoctor.org/#installation">https://asciidoctor.org/#installation</a></p>
<p><strong>Windows:</strong> installing on Windows is not straightforward as one needs to install Ruby first. Asciidoc3 isn’t the straightest either, but enough that it can be shortened to couple of instructions, namely:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">pip</span> <span class="n">install</span> <span class="n">asciidoc3</span>
   <span class="c1"># stuff happens</span>

<span class="n">asciidoc3_postinstall</span>
   <span class="c1"># more stuff happens</span>

<span class="c1">#now asciidoc3 is ready and Leo can use it:</span>
<span class="n">asciidoc3</span> <span class="o">--</span><span class="n">help</span>
</pre></div>
</div>
<p>If you run into difficulties see <a class="reference external" href="https://asciidoc3.org/pypi.html#_asciidoc3_pip_install_windows">https://asciidoc3.org/pypi.html#_asciidoc3_pip_install_windows</a></p>
</section>


            <div class="clearer"></div>
          </div>
        </div>
      </div>
      <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
        <div class="sphinxsidebarwrapper">
            <p class="logo"><a href="leo_toc.html">
              <img class="logo" src="_static/LeoLogo.svg" alt="Logo"/>
            </a></p>
  <div>
    <h4>Previous topic</h4>
    <p class="topless"><a href="leoandotherprograms.html"
                          title="previous chapter">Leo and Other Programs</a></p>
  </div>
  <div>
    <h4>Next topic</h4>
    <p class="topless"><a href="emacs.html"
                          title="next chapter">Leo and Emacs, including org mode</a></p>
  </div>
<div id="searchbox" style="display: none" role="search">
  <h3 id="searchlabel">Quick search</h3>
    <div class="searchformwrapper">
    <form class="search" action="search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
      <input type="submit" value="Go" />
    </form>
    </div>
</div>
<script>document.getElementById('searchbox').style.display = "block"</script>
        </div>
<div id="sidebarbutton" title="Collapse sidebar">
<span>«</span>
</div>

      </div>
      <div class="clearer"></div>
    </div>
    <div class="related" role="navigation" aria-label="related navigation">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="emacs.html" title="Leo and Emacs, including org mode"
             >next</a> |</li>
        <li class="right" >
          <a href="leoandotherprograms.html" title="Leo and Other Programs"
             >previous</a> |</li>
        <li class="nav-item nav-item-0"><a href="leo_toc.html">Leo 6.7.2 documentation</a> &#187;</li>
          <li class="nav-item nav-item-1"><a href="leoandotherprograms.html" >Leo and Other Programs</a> &#187;</li>
        <li class="nav-item nav-item-this"><a href="">Leo and Asciidoctor</a></li> 
      </ul>
    </div>
    <div class="footer" role="contentinfo">
        &#169; Copyright 1997-2023, Edward K. Ream.
      Last updated on February 28, 2023.
      Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 5.3.0.
    </div>
  </body>
</html>